import request from '@/utils/request'

// 查询停电反馈数据列表
export function listOutagefeedback(query) {
  return request({
    url: '/tietasystem/outagefeedback/list',
    method: 'get',
    params: query
  })
}

// 查询停电反馈数据详细
export function getOutagefeedback(id) {
  return request({
    url: '/tietasystem/outagefeedback/' + id,
    method: 'get'
  })
}

// 新增停电反馈数据
export function addOutagefeedback(data) {
  return request({
    url: '/tietasystem/outagefeedback',
    method: 'post',
    data: data
  })
}

// 修改停电反馈数据
export function updateOutagefeedback(data) {
  return request({
    url: '/tietasystem/outagefeedback',
    method: 'put',
    data: data
  })
}

// 删除停电反馈数据
export function delOutagefeedback(id) {
  return request({
    url: '/tietasystem/outagefeedback/' + id,
    method: 'delete'
  })
}

// 导出停电反馈数据
export function exportOutagefeedback(query) {
  return request({
    url: '/tietasystem/outagefeedback/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/tietasystem/outagefeedback/importTemplate',
    method: 'get'
  })
}